﻿using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Infrastructure.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Infrastructure.Constant
{
    public static class SysConfigConst
    {
        private static string json= WebConfigUtils.GetAppSettingsInfo("SysConfig");

        private static MySysConfig mySysConfig = JsonHelper.ToObject<MySysConfig>(json);
      
        /// <summary>
        /// 商家ID
        /// </summary>
        public static Guid MerchantId= mySysConfig.MerchantId;

        /// <summary>
        /// 是否开发模式
        /// </summary>
        public static bool IsDev = mySysConfig.IsDev;

        /// <summary>
        /// 发送验证码 接口地址
        /// </summary>
        public static string SendVerifyCode = mySysConfig.SendVerifyCode;

        /// <summary>
        /// 发送短信 接口地址
        /// </summary>
        public static string SendSms = mySysConfig.SendSms;

        /// <summary>
        /// 七牛云 接口地址
        /// </summary>
        public static string QiNiuCloudApiUrl = mySysConfig.QiNiuCloudApiUrl;

        /// <summary>
        /// 招行支付回调域名
        /// </summary>
        public static string CmpPayCallbackDomain = mySysConfig.CmpPayCallbackDomain;
    }
}
